package com.csun.cmny.provider.model.domain;

import lombok.Data;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@Alias(value = "dmcPhoneLocation")
@Table(name = "cn_dmc_phone_location")
public class DmcPhoneLocation implements Serializable {

    private static final long serialVersionUID = -2018515023891482817L;

    /**
     * 设备Id
     */
    @Id
    @Column(name = "device_id")
    private Long deviceId;

    /**
     * 0-自定义, 1-房间
     */
    @Column(name = "bind_type")
    private Integer bindType;

    /**
     * 房间Id
     */
    @Column(name = "room_id")
    private Integer roomId;

    /**
     * 绑定位置
     */
    private String location;
}